/**
 * 
 */
package com.zhanggz.mypattern.cor;

import com.zhanggz.mypattern.cor.handler.PriceHandler;

/**
 * 客户，请求折扣
 * 
 * @author Alex
 * @date 2015年6月23日
 */
public class Customer {

	private PriceHandler priceHandler;

	/**
	 * @param priceHandler
	 *            the priceHandler to set
	 */
	public void setPriceHandler(PriceHandler priceHandler) {
		this.priceHandler = priceHandler;
	}

	public void requestDiscount(float discount) {
		priceHandler.processDiscount(discount);
	}

}
